package com.lpit.controller;

import com.lpit.pojo.Affiche;
import com.lpit.result.ResponseResult;
import com.lpit.service.impl.AfficheServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/affiche")
public class AfficheContentController {
    @Autowired
    AfficheServiceImpl afficheService;
    /**
     * 查看系统公告列表
     */
    @GetMapping("/check")
    public ResponseResult<List<Affiche>> affiche(){
        return afficheService.findAllByOrderReleaseTimeDesc();
    }
}
